$(function() {
	var show = 0
	$("#more").on("click", function() {
		if(show == 0) {
			
			$('#showmore').css('display','block')
			show = 1
		} else {
			$('#showmore').css('display','none')
			show = 0
		}
	})
	$(".showmap").on('click', function() {
		popup(this)
		if($(this).data('method')=="showmap"){
			var map = new AMap.Map('showlocation', {
			resizeEnable: true,
			zoom: 11,
			center: [118.57, 24.82]
		});
		}
		
	})
	$('.delete-list').on('click',function(){
		popup(this,"{:url('delete')}");
	});
	$('.am-nav-tabs li a').on('click',function(){
		var index = layer.load(1, {
		  shade: [0.1,'#fff'] //0.1透明度的白色背景
		});
	})
})